import request from './request'

export default {
    // 获取课程表分页数据
    getSchedulePage(pageNum = 1, pageSize = 10, courseName = '', className = '', teacherName = '') {
        return request.get('/schedule/pageall', {
            params: {
                pageNum,
                pageSize,
                courseName,
                className,
                teacherName
            }
        })
    },
    updateSchedule(scheduleData) {
        return request.put('/schedule/update', scheduleData)
    }
}